#include <port_comm.h>

int main(int argc, char* argv[]){

  PortComm::PortCommType typeClient = PortComm::CLIENT;

  PortComm commClient = PortComm("localhost", 5000, typeClient);
  printf("%d\n", commClient.isValid());

  commClient.write_port((unsigned char *)"hello", 6);

  int length;
  char *message;
  commClient.read_port((unsigned char**) &message, &length);
  printf("%s\n", message);
}
